package cn.cdqf.coupon.dispatch.controller;

import cn.cdqf.globle.common.ResultResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.multipart.MultipartFile;

@RestController
public class FileTestController {
    @Autowired
    private FileControllerApi fileControllerApi;

    @PostMapping("file")
    public ResultResponse file(MultipartFile multipartFile){
        return fileControllerApi.upload(multipartFile);
    }
}
